

#ifndef NODELEAF_H
#define	NODELEAF_H

#include <QtGui>
#include "MathEditPoint.h"
#include "Node.h"
#include <iostream>

class NodeLeaf : public Node {
    Q_OBJECT

public:
    NodeLeaf();
    NodeLeaf(QString & content);
    
    QString getNodeType() const;
    QString getNodeValue() const;

    QString toCasString() const;
    QString toPrintString() const;
    QString toParseString() const;
    
    int getInputPosition(bool& found) const;
    void setInputPosition(int& position);
    
    bool isConstant() const;

    QSize sizeHint() const;
    
private:
    void keyPressEvent(QKeyEvent *event);
    
    MathEditPoint* editPoint;

};

#endif	/* NODELEAF_H */

